import http from "../js/http.js"

//新任务的数量
export function myNewTaskForStudent(){
	return http({
		url: '/Api/Statistics/MyNewTaskForStudent',
		without: true
	})
}
//获取收到的任务
export function receiveTasks(data){
	return http({
		url: '/Api/Task/ReceiveTasks',
		data,
		without: true
	})
}
//获取老师布置的写作任务
export function bookReviewByUserId(data){
	return http({
		url: '/Api/BookReview/List/ByUserId',
		data,
		without: true
	})
}
//获取学生自己的读后感
export function ownList(data){
	return http({
		url: '/Api/BookReview/OwnList/ByUserId',
		data,
		without: true
	})
}
//获取任务进度详情
export function queryProgress(data){
	return http({
		url: '/Api/Task/QueryProgress',
		data
	})
}
//提交写作
export function addReview(data){
	return http({
		url: '/Api/BookReview/Add',
		data
	})
}
//修改写作
export function updateReview(data){
	return http({
		url: '/Api/BookReview/Update',
		data
	})
}
//图书详情
export function bookQuery(data){
	return http({
		url: '/Api/Book/Query',
		data
	})
}
//任务id获取题目
export function queryTaskContent(data){
	return http({
		method: 'post',
		url: '/EvaluatingUserApi/Task/QueryTaskContent',
		data
	})
}
//查询标准答案
export function querySA(data){
	return http({
		url: '/EvaluatingUserApi/Task/QuerySA',
		data
	})
}

//问答题评分
export function getSimilarScoreV2(data){
	return http({
		url: '/EvaluatingUserApi/TextSimilarity/GetScore',
		data
	})
}
//答题结果提交
export function addTaskResult(data){
	return http({
		url: '/EvaluatingUserApi/TaskResult/Add',
		data
	})
}
//阅读力评测结果提交
export function addTaskResultExt(data){
	return http({
		url: '/Api/TaskReadingLiteracy/AddResult',
		data
	})
}

//赚取能力点
export function getPoint(data){
	return http({
		url: '/Api/CapacityPoint/Earn',
		data
	})
}
//获取答题结果
export function queryTaskResult(data){
	return http({
		url: '/EvaluatingUserApi/TaskResult/Query',
		data
	})
}

//开始答题
export function beginAnswer(data){
	return http({
		url: '/EvaluatingUserApi/TaskResult/BeginAnswer',
		data,
		handle: true,
		ignore: true
	})
}

//日志监测
export function errorLog(data){
	return http({
		url: '/Api/ErrorLog/Add',
		data,
		handle: true,
		ignore: true,
		without: true
	})
}

//获取补考题目
export function queryTaskContentBK(data){
	return http({
		url: '/EvaluatingUserApi/Task/QueryTaskContent',
		data
	})
}
//开始补考答题
export function beginAnswerBK(data){
	return http({
		url: '/EvaluatingUserApi/TaskBKResult/BeginAnswer',
		data
	})
}
//保存提交补考答题
export function addTaskResultBK(data){
	return http({
		url: '/EvaluatingUserApi/TaskBKResult/Add',
		data
	})
}
//获取补考结果
export function queryTaskResultBK(data){
	return http({
		url: '/EvaluatingUserApi/TaskBKResult/Query',
		data
	})
}

